Conservation of mechanical energy in a Projectile motion